package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.TDoctorClassMapper;
import com.ruoyi.project.system.domain.TDoctorClass;
import com.ruoyi.project.system.service.ITDoctorClassService;

/**
 * 医生分类关联表Service业务层处理
 * 
 * @author 孙山伟
 * @date 2020-12-20
 */
@Service
public class TDoctorClassServiceImpl implements ITDoctorClassService 
{
    @Autowired
    private TDoctorClassMapper tDoctorClassMapper;

    /**
     * 查询医生分类关联表
     * 
     * @param id 医生分类关联表ID
     * @return 医生分类关联表
     */
    @Override
    public TDoctorClass selectTDoctorClassById(Long id)
    {
        return tDoctorClassMapper.selectTDoctorClassById(id);
    }

    /**
     * 查询医生分类关联表列表
     * 
     * @param tDoctorClass 医生分类关联表
     * @return 医生分类关联表
     */
    @Override
    public List<TDoctorClass> selectTDoctorClassList(TDoctorClass tDoctorClass)
    {
        return tDoctorClassMapper.selectTDoctorClassList(tDoctorClass);
    }

    /**
     * 新增医生分类关联表
     * 
     * @param tDoctorClass 医生分类关联表
     * @return 结果
     */
    @Override
    public int insertTDoctorClass(TDoctorClass tDoctorClass)
    {
        return tDoctorClassMapper.insertTDoctorClass(tDoctorClass);
    }

    /**
     * 修改医生分类关联表
     * 
     * @param tDoctorClass 医生分类关联表
     * @return 结果
     */
    @Override
    public int updateTDoctorClass(TDoctorClass tDoctorClass)
    {
        return tDoctorClassMapper.updateTDoctorClass(tDoctorClass);
    }

    /**
     * 批量删除医生分类关联表
     * 
     * @param ids 需要删除的医生分类关联表ID
     * @return 结果
     */
    @Override
    public int deleteTDoctorClassByIds(Long[] ids)
    {
        return tDoctorClassMapper.deleteTDoctorClassByIds(ids);
    }

    /**
     * 删除医生分类关联表信息
     * 
     * @param id 医生分类关联表ID
     * @return 结果
     */
    @Override
    public int deleteTDoctorClassById(Long id)
    {
        return tDoctorClassMapper.deleteTDoctorClassById(id);
    }
}
